package com.kingdee.pda.ui.check_order

import com.kingdee.pda.entity.CheckOrderDetailBean

object CheckOrderUtil {
    fun transferDetailsOrg(details: List<CheckOrderDetailBean.Detailinfo>):List<CheckOrderDetailBean.Detailinfo> {
        if (!details.isNullOrEmpty()){
            details.forEach {
                if (it.detailownertype == "bos_org") {
                    it.detailownertypename = "核算组织"
                } else if (it.detailownertype == "bd_supplier") {
                    it.detailownertypename = "供应商"
                } else if (it.detailownertype == "bd_customer") {
                    it.detailownertypename = "客户"
                }
            }
        }
        return  details
    }
}
